package edu.gmu.router;

/**
 * Listenrs are interested both when a message needs to be forwarded and
 * also when a message needs to be consumed.
 * 
 * @author  James H. Pope
 * @version $Revision:$ $Date:$
 */
public interface RouterDispatcherListener
{
    /**
     * This method is called when a message is received.
     * @param message
     */
    public void forwardMessageEvent(ForwardMessageEvent event);
    
    /**
     * This method is called when a message is received.
     * @param message
     */
    public void routerMessageEvent(RouterMessageEvent event);
}
